package demo;


import demo.standard.ConcretePrototype;
import demo.standard.IPrototype;

public class ClientForStandard {

    public static void main(String[] args) {

        ConcretePrototype prototype = new ConcretePrototype();
        prototype.setPart1("原型part1");
        prototype.setPart2("原型part2");
        System.out.println("原型:" + prototype);

        IPrototype clone = prototype.clone();
        System.out.println("克隆:" + clone);
        System.out.println("原型和克隆的hashCode是否相等:" + (prototype.hashCode() == clone.hashCode()));
    }
}
